﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Generic.Contract;

namespace Contract.Business.Entity
{
    //Criado por : Gustavo
    //Data       : 9/29/2011 1:16:14 AM
    public class BEGrupo : BEGeneric
    {
        #region Atributos
        private string _Descricao;

        #endregion

        #region Propriedades
        public string Descricao
        {
            get
            {
                return this._Descricao;
            }
            set
            {
                if (this._Descricao != value)
                {
                    this.SendPropertyChanging();
                    this._Descricao = value;
                    this.SendPropertyChanged("Descricao");
                }
            }
        }


        #endregion

        #region Métodos Override
        public override string ToString()
        {
            return this.Descricao;
        }

        public override bool Equals(object obj)
        {
            try
            {
                return this.Codigo == ((BEGrupo)obj).Codigo;
            }
            catch (Exception)
            {
                return false;
            }
        }
        #endregion
    }
}
